<%@ page language="java" contentType="text/html; charset=UTF-8" import="java.util.*"
	pageEncoding="UTF-8"%>
<%@ include file="../../../common/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<sfa:mainTitle></sfa:mainTitle>
		<%@ include file="../../../common/meta.jsp"%>
<script type="text/javascript">
$(function(){
	$("#Check_Finish").click(function(){
		$.ajax({
					url : "${path}/team/attendance/index/insertData",
					type : 'POST',
					timeout : 1000,
					//data : ,
					success: function(result){ 
						result='('+result+')';
					    var obj = eval(result);
						if (obj.result == true) {							
							art.dialog( {
								icon : "succeed",
								content : "保存成功!",
								lock : true,
								ok : function() {								   
					    			window.location.href="${path}/team/attendance/index/thisinto?mainid="+obj.mainid;									
								}
							});
						} else {
							art.dialog( {
								icon : "error",
								content : "保存失败!",
								lock : true,
								ok : true
							});
						}
						
					    },   
    				error: function(){   
					    alert('请核查数据');   
					}
				});
	});
});
</script>
	</head>
	<body id="master">
		<sfa:mainHeader></sfa:mainHeader>
		
		<div class="webpart3 contentarea">
			<div class="webpart-head">
				<div class="webpart-head-item">
					导入核对
					<div class="tools-btn" style="margin-right: 4px; margin-bottom: 0px;">
						<input type="button" class="linkbtn2" id="Check_Finish" value="核对完成">
				    </div>
				</div>
						
			</div>		
		<div class="webpart-main">
    	<div class="webpart-main-item" style="padding-top: 12px;">	
			<div class="search" style="height: 393px; overflow: auto;">
				<table cellspacing="0" cellpadding="0" class="trStyleTable dg_borderstyle"
				 style="margin-top: 15px; width: 100%;text-align: center;">
					<tbody>
					<tr class="tabheader">
						<th>编号</th>
						<th>被考勤人</th>
						<th>起始时间</th>
						<th>结束时间</th>
						<th>考勤项目</th>
						<th>考勤结果</th>
						<th>备注</th>
					</tr>
					<c:forEach items="${list}" var="items">
						<tr class="gray datarow">
							<c:forEach items="${items}" var="data">
							    <td>${data}</td>							    
							</c:forEach>
						</tr>
					</c:forEach>
					</tbody>
				</table>
				</div>
			</div>
			</div>
			<div class="webpart-foot">
				<div class="webpart-foot-item">
				</div>
			</div>
		</div>
   		<sfa:mainFooter></sfa:mainFooter>
	</body>
</html>

